package com.yonyou.brigade.third_parties.yihao.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.service.IService;
import com.yonyou.brigade.basic_init.model.BriChannel;
import com.yonyou.brigade.third_parties.yihao.model.YihaoDept;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author houyb
 * @since 2020-01-14
 */
public interface IYihaoDeptService extends IService<YihaoDept> {

    /**
     * 同步部门
     * @param tenant
     * @param phone
     * @param briChannel
     */
    public void sysUserDept(String tenant, String phone, BriChannel briChannel);

    public void sysOrgDept(String tenant, String org, String orgName, JSONObject config);

    /**
     * 同步根部门
     * @param tenant
     * @param config
     */
    public void sysRootDept(String tenant, JSONObject config);
}
